package pojo.Homework

class Person02 {
  var name: String = "继承Person"
}

class Cat() extends Person02() {
  def hello(): Unit = {
    println(this.name)
  }
}